package com.lisa404.ai.controller;

import com.lisa404.ai.chatbot.service.AiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@SpringBootApplication
public class AiController {


    @Autowired
    AiService aiService;


    @GetMapping("/chat")
    public String chat() {
        return aiService.getResponse("1", "你好");
    }
}
